package com.sun.showcase.biz.mall.service;

import com.sun.showcase.client.domain.mall.GoodsQrcode;
import com.sun.showcase.client.query.mall.GoodsQrcodeQuery;
import com.sun.showcase.pojo.DataGrid;

import java.util.List;

public interface GoodsQrcodeService{

	/**
	 * 获得数据表格
	 * 
	 * @param
	 * @return
	 */
	public DataGrid datagrid(GoodsQrcodeQuery goodsQrcodeQuery);

	/**
	 * 添加
	 * 
	 * @param goodsQrcodeQuery
	 */
	public GoodsQrcode add(GoodsQrcodeQuery goodsQrcodeQuery);

	/**
	 * 修改
	 * 
	 * @param goodsQrcodeQuery
	 */
	public void update(GoodsQrcodeQuery goodsQrcodeQuery) ;
	
	/**
	 *  根据条件更新部分字段
	 * 
	 * @param goodsQrcodeQuery
	 */
	public void updatePart(GoodsQrcodeQuery goodsQrcodeQuery) ;

	/**
	 * 物理删除
	 * 
	 * @param ids
	 */
	public void delete(String[] ids);

	/**
	 * 逻辑删除 更新状态位
	 *
	 * @param ids
	 */
	public void deletePt(String[] ids);

	/**
	 * 获得
	 *
	 * @param GoodsQrcode
	 * @return
	 */
	public GoodsQrcode get(GoodsQrcodeQuery goodsQrcodeQuery);


	/**
	 * 获得
	 *
	 * @param
	 * @return
	 */
	public GoodsQrcode get(String id);

	/**
	 * 获取所有数据
	 */
	public List<GoodsQrcodeQuery> listAll(GoodsQrcodeQuery goodsQrcodeQuery);

	public GoodsQrcode getByGoodsAndUserId(String goodsId, String userId);
	
}
